/* 
 描述：定义问题管理模块的数据访问接口，包括问题的增删查改、标签关联和评论查询等操作 
 完成人：吴悠 
 完成时间: 2025/04/27
 */
package com.jiesenhe.qacommunity.mapper;

import com.jiesenhe.qacommunity.pojo.Comment;
import com.jiesenhe.qacommunity.pojo.Question;
import com.jiesenhe.qacommunity.pojo.QuestionTag;
import com.jiesenhe.qacommunity.pojo.Tag;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface QuestionMapper {
    List<Question> getQuestionList(Question question);

    int insertQuestion(Question question);

    int insertQuestionTag(QuestionTag questionTag);

    List<Tag> getQuestionTag(int questionId);
    List<Comment> getQuestionComment(int questionId);


    int deleteQuestion(Question question);

    int deleteQuestionCommentLike(Question question);

    int deleteQuestionLike(Question question);


    int getLastQuestionId();
}
